class ImportSlides < ActiveRecord::Migration
  def self.up
    Presentation.create(:title => 'First presentation',
    :description => 'It is the first presentation, there is not slide yet',
    :parent_id => '-7',
    :last_order => 1,
    :author => 4)
    Order.create(:json => '[{"id":"slide-1"},{"id":"slide-2"},{"id":"slide-3"},{"id":"slide-4"},{"id":"slide-5"},{"id":"slide-6"}]',
    :of_presentation => 1)
    
    Slide.create(:in_presentation => 1,
                 :last_content => 1,
                 :original_slide => true)
    Slide.create(:in_presentation => 1,
                 :last_content => 2,
                 :original_slide => true)
    Slide.create(:in_presentation => 1,
                 :last_content => 3,
                 :original_slide => true)
    Slide.create(:in_presentation => 1,
                 :last_content => 4,
                 :original_slide => true)
    Slide.create(:in_presentation => 1,
                 :last_content => 5,
                 :original_slide => true)
    Slide.create(:in_presentation => 1,
                 :last_content => 6,
                 :original_slide => true)
    
    #Presentation 1
    Content.create(:json => '{"c":"","a":[{"o":{"delay":0,"duration":3000,"effect":"fade"},"type":"show","id":"e879","trigger":"click"},{"o":{"delay":500,"direction":"horizontal","duration":3000,"effect":"blind"},"type":"show","id":"e701","trigger":"after"}],"t":[{"f":null},{"f":"blind"}],"e":[{"i":"e879","t":"img","c":{"img":"http://farm4.static.flickr.com/3120/2710234187_478ffef8a6_m.jpg","src":"http://farm4.static.flickr.com/3120/2710234187_478ffef8a6.jpg"},"p":{"left":"-0.13%","height":"100.7%","top":"-0.17%","width":"100.26%"}},{"i":"e701","t":"title","c":"<p id=\"ext-gen866\" align=\"center\"><font id=\"ext-gen904\" face=\"arial\" size=\"3\">Something...<br></font></p>","p":{"left":"0%","fontSize":"100%","height":"6.27%","fontClass":"A","width":"100%","top":"50.26%"}}],"p":{"backgroundColor":"#FFFFFF"}}',
    :of_slide => 1)
    Content.create(:json => '{"c":"","a":[{"o":{"delay":0,"duration":400,"effect":"fade"},"type":"show","id":"e3003","trigger":"click"},{"o":{"delay":500,"duration":400,"effect":"puff"},"type":"show","id":"e2748","trigger":"after"},{"type":"show","o":{"delay":400,"duration":1000,"effect":"drop"},"id":"e843","trigger":"after"},{"type":"show","o":{"delay":0,"duration":400,"direction":"down","effect":"slide"},"id":"e841","trigger":"click"},{"type":"show","o":{"delay":500,"duration":400,"horizFirst":true,"effect":"fold"},"id":"e839","trigger":"after"},{"type":"show","o":{"delay":500,"duration":1000,"direction":"down","effect":"drop"},"id":"e844","trigger":"after"},{"o":{"delay":0,"direction":"down","duration":400,"effect":"slide"},"type":"hide","id":"e3003","trigger":"click"},{"o":{"delay":0,"direction":"down","duration":400,"effect":"slide"},"type":"hide","id":"e2748","trigger":"after"},{"type":"hide","o":{"delay":0,"duration":1000,"direction":"down","effect":"slide"},"id":"e843","trigger":"after"},{"type":"hide","o":{"delay":0,"duration":400,"direction":"down","effect":"slide"},"id":"e841","trigger":"after"},{"type":"hide","o":{"delay":0,"duration":400,"direction":"down","effect":"slide"},"id":"e839","trigger":"after"},{"type":"hide","o":{"delay":0,"duration":1000,"direction":"down","effect":"slide"},"id":"e844","trigger":"after"},{"o":{"delay":0,"duration":200,"effect":"fade"},"type":"show","id":"e2338","trigger":"click"},{"o":{"delay":0,"duration":200,"effect":"fade"},"type":"show","id":"e2127","trigger":"after"},{"o":{"delay":0,"duration":200,"effect":"fade"},"type":"show","id":"e1699","trigger":"after"},{"o":{"delay":0,"duration":200,"effect":"fade"},"type":"show","id":"e1732","trigger":"after"},{"o":{"delay":0,"duration":200,"effect":"fade"},"type":"show","id":"e1765","trigger":"after"},{"o":{"delay":0,"duration":200,"effect":"fade"},"type":"show","id":"e1657","trigger":"after"},{"o":{"delay":0,"duration":200,"effect":"fade"},"type":"show","id":"e1168","trigger":"after"},{"o":{"delay":0,"duration":200,"effect":"fade"},"type":"show","id":"e1257","trigger":"after"}],"t":[{"f":null},{"f":"fade"}],"e":[{"i":"e841","t":"img","c":{"src":"http://farm4.static.flickr.com/3090/2567875694_06c1b68af9.jpg"},"p":{"left":"0.78%","height":"31.22%","width":"35.1%","top":"32.35%"}},{"i":"e843","t":"title","c":"<p id=\"ext-gen2070\"><font id=\"ext-gen811\" color=\"#ffffff\" face=\"arial\" size=\"6\">impressive</font></p>","p":{"left":"57.55%","fontSize":"100%","height":"10.24%","fontClass":"A","width":"33.82%","top":"11.56%"}},{"i":"e844","t":"text","c":"<p id=\"ext-gen1906\" align=\"center\"><font id=\"ext-gen785\" color=\"#c0c0c0\" face=\"arial\" size=\"5\">creative</font></p>","p":{"left":"8.47%","fontSize":"100%","height":"5.37%","fontClass":"A","width":"18.28%","top":"73.22%"}},{"i":"e839","t":"img","c":{"src":"http://farm4.static.flickr.com/3090/2571183758_73ef817ba6.jpg"},"p":{"left":"37.03%","height":"54.39%","width":"61.97%","top":"32.17%"}},{"i":"e1168","t":"img","c":{"img":"http://farm4.static.flickr.com/3254/2715732635_817bac489a_m.jpg","src":"http://farm4.static.flickr.com/3254/2715732635_817bac489a.jpg"},"p":{"left":"72.49%","height":"10.98%","width":"12.07%","top":"88.08%"}},{"i":"e1257","t":"img","c":{"img":"http://farm4.static.flickr.com/3091/2715738583_a7cf7cfd82_m.jpg","src":"http://farm4.static.flickr.com/3091/2715738583_a7cf7cfd82.jpg"},"p":{"left":"85.66%","height":"11.22%","width":"13.53%","top":"87.83%"}},{"i":"e1657","t":"img","c":{"img":"http://farm4.static.flickr.com/3154/2716528516_9926e412ac_m.jpg","src":"http://farm4.static.flickr.com/3154/2716528516_9926e412ac.jpg"},"p":{"left":"59.35%","height":"10.49%","width":"11.88%","top":"88.2%"}},{"i":"e1699","t":"img","c":{"img":"http://farm4.static.flickr.com/3161/2716458142_7faf16f14c_m.jpg","src":"http://farm4.static.flickr.com/3161/2716458142_7faf16f14c.jpg"},"p":{"left":"20.34%","height":"10.49%","width":"11.7%","top":"88.35%"}},{"i":"e1732","t":"img","c":{"img":"http://farm4.static.flickr.com/3056/2715615289_4e99e0ffa8_m.jpg","src":"http://farm4.static.flickr.com/3056/2715615289_4e99e0ffa8.jpg"},"p":{"left":"33.25%","height":"10.49%","width":"11.7%","top":"88.17%"}},{"i":"e1765","t":"img","c":{"img":"http://farm4.static.flickr.com/3095/2715615427_ed632f431a_m.jpg","src":"http://farm4.static.flickr.com/3095/2715615427_ed632f431a.jpg"},"p":{"left":"46.15%","height":"10.73%","width":"12.43%","top":"87.83%"}},{"i":"e2127","t":"img","c":{"img":"http://farm4.static.flickr.com/3111/2716435298_1d1b9b1297_m.jpg","src":"http://farm4.static.flickr.com/3111/2716435298_1d1b9b1297.jpg"},"p":{"left":"7.56%","height":"10.24%","width":"11.52%","top":"88.52%"}},{"i":"e2338","t":"img","c":{"img":"http://farm4.static.flickr.com/3224/2715576739_14a7c676fa_m.jpg","src":"http://farm4.static.flickr.com/3224/2715576739_14a7c676fa.jpg"},"p":{"left":"0.91%","height":"10%","width":"5.48%","top":"88.7%"}},{"i":"e2748","t":"img","c":{"img":"http://farm4.static.flickr.com/3182/2716253808_592f76114b_m.jpg","src":"http://farm4.static.flickr.com/3182/2716253808_592f76114b.jpg"},"p":{"left":"18.64%","height":"29.51%","width":"32.18%","top":"1.22%"}},{"i":"e3003","t":"img","c":{"img":"http://farm4.static.flickr.com/3020/2716222472_26f716e253_m.jpg","src":"http://farm4.static.flickr.com/3020/2716222472_26f716e253.jpg"},"p":{"left":"0.73%","height":"30%","width":"17%","top":"0.98%"}}],"p":{"backgroundColor":"#000000"}}',
    :of_slide => 2)
    Content.create(:json => '{"c":"","a":[{"type":"hide","o":{"delay":0,"duration":4000,"direction":"right","effect":"drop"},"id":"e1030","trigger":"click"},{"type":"hide","o":{"delay":500,"duration":2600,"effect":"fade"},"id":"e6075","trigger":"after"},{"type":"hide","o":{"delay":0,"duration":400,"effect":"clip"},"id":"e851","trigger":"click"}],"t":[{"f":null},{"f":"fade"}],"e":[{"i":"e1030","t":"title","c":"<p id=\"ext-gen1126\" align=\"center\"><font id=\"ext-gen1080\" color=\"#ffffff\" face=\"arial\" size=\"4\"><b id=\"ext-gen1079\">...following the way<br></b></font></p>","p":{"left":"17%","fontSize":"100%","height":"6.95%","fontClass":"A","top":"1.08%","width":"68.54%"}},{"i":"e6075","t":"img","c":{"img":"http://farm4.static.flickr.com/3052/2712974489_a41b1f7342_m.jpg","src":"http://farm4.static.flickr.com/3052/2712974489_a41b1f7342.jpg"},"p":{"left":"9.66%","height":"71.66%","top":"13.76%","width":"80.56%"}},{"i":"e851","t":"map","c":{"markers":[[48.0433237785544,1.7446294426918],[48.8015570528478,5.1284185051918],[46.7945439895896,0.733887255191803]],"center":{"x":2.493896484375,"y":48.7996273507997},"zoom":7,"img":"http://maps.google.com/staticmap?key=ABQIAAAA6nu66NIBsHREF4gj2EiD4xQGfL5CarnNMXkmV6A3I8IaSFdSLBTPZfbkf0arAo50-3HUPOyNF5cb3A&center=48.7996273507997,2.493896484375&size=512x512&zoom=7&markers=48.0433237785544,1.7446294426918|48.8015570528478,5.1284185051918|46.7945439895896,0.733887255191803|"},"p":{"left":"9.48%","height":"81.55%","top":"9.31%","width":"81.16%"}}],"p":{"backgroundColor":"#000080"}}',
    :of_slide => 3)
    Content.create(:json => '{"c":"","a":[{"o":{"delay":0,"direction":"left","duration":400,"effect":"slide"},"type":"show","id":"e1478","trigger":"click"},{"type":"animate","o":{"opacity":0.5,"delay":0,"duration":400,"effect":"fade"},"id":"e1400","trigger":"click"},{"type":"animate","o":{"opacity":0.5,"delay":0,"duration":400,"effect":"fade"},"id":"e1214","trigger":"after"},{"o":{"delay":1000,"duration":400,"effect":"fade"},"type":"show","id":"e1522","trigger":"after"},{"o":{"delay":1500,"direction":"horizontal","duration":400,"effect":"blind"},"type":"show","id":"e1639","trigger":"after"}],"t":[{"f":null},{"f":"fade"}],"e":[{"i":"e1400","t":"img","c":{"img":"http://farm4.static.flickr.com/3234/2711822806_5c3d2b4593_m.jpg","src":"http://farm4.static.flickr.com/3234/2711822806_5c3d2b4593.jpg"},"p":{"left":"0%","height":"79.97%","top":"0%","width":"100%"}},{"i":"e1214","t":"img","c":{"img":"http://farm4.static.flickr.com/3236/2712522312_5c01cca34d_m.jpg","src":"http://farm4.static.flickr.com/3236/2712522312_5c01cca34d.jpg"},"p":{"left":"0%","height":"27.87%","top":"72.17%","width":"100.26%"}},{"i":"e1478","t":"title","c":"<p align=\"center\"><font id=\"ext-gen1203\" color=\"#ff6600\" face=\"arial\" size=\"11\"><b id=\"ext-gen1202\">...something warm<br></b></font></p>","p":{"left":"9.67%","fontSize":"100%","height":"11.15%","fontClass":"A","top":"9.56%","width":"80.55%"}},{"i":"e1522","t":"img","c":{"img":"http://farm4.static.flickr.com/3050/2713474266_619428212c_m.jpg","src":"http://farm4.static.flickr.com/3050/2713474266_619428212c.jpg"},"p":{"left":"6.78%","height":"85.54%","top":"6.61%","width":"86.42%"}},{"i":"e1639","t":"text","c":"<div align=\"center\"><font id=\"ext-gen1622\" color=\"#ffffff\" size=\"3\"><font id=\"ext-gen1513\" face=\"arial\">a comfortably high temperature</font></font><font color=\"#ffffff\" face=\"arial\" size=\"3\"><br></font></div><div style=\"-moz-user-select: none;\" id=\"ext-gen1480\" class=\"x-resizable-handle x-resizable-handle-east x-unselectable\"></div>","p":{"left":"12.13%","fontSize":"100%","height":"4.53%","fontClass":"A","top":"78.96%","width":"38.9%"}}],"p":{"backgroundColor":"#FFFFFF"}}',
    :of_slide => 4)
    Content.create(:json => '{"c":"","a":[],"t":[{"f":null},{"f":"puff"}],"e":[{"i":"e1561","t":"video","c":{"src":"http://www.youtube.com/v/6-EcasIakX4","img":"http://i.ytimg.com/vi/6-EcasIakX4/default.jpg"},"p":{"top":"6.25%","left":"6.26%","height":"87.63%","width":"87.47%"}}],"p":{"backgroundColor":"#FFFFFF"}}',
    :of_slide => 5)
    Content.create(:json => '{"c":"","a":[{"type":"show","o":{"delay":0,"duration":400,"effect":"blind"},"id":"e1928","trigger":"click"},{"type":"show","o":{"delay":500,"duration":400,"direction":"horizontal","effect":"blind"},"id":"e2388","trigger":"after"},{"type":"show","o":{"delay":500,"duration":400,"direction":"horizontal","effect":"blind"},"id":"e2142","trigger":"after"},{"type":"show","o":{"delay":500,"duration":400,"direction":"horizontal","effect":"blind"},"id":"e2228","trigger":"after"},{"type":"show","o":{"delay":500,"duration":400,"effect":"fade"},"id":"e1825","trigger":"after"},{"type":"animate","o":{"delay":0,"duration":1000,"percent":500,"effect":"scale"},"id":"e1825","trigger":"after"},{"type":"show","o":{"delay":0,"duration":400,"direction":"right","effect":"drop"},"id":"e2546","trigger":"click"},{"type":"hide","o":{"delay":0,"duration":400,"effect":"puff"},"id":"e1825","trigger":"click"},{"type":"hide","o":{"delay":0,"duration":400,"effect":"puff"},"id":"e2546","trigger":"after"},{"type":"hide","o":{"delay":0,"duration":400,"effect":"puff"},"id":"e2228","trigger":"after"},{"type":"hide","o":{"delay":0,"duration":400,"effect":"puff"},"id":"e2142","trigger":"after"},{"type":"hide","o":{"delay":0,"duration":400,"effect":"puff"},"id":"e2388","trigger":"after"},{"type":"hide","o":{"delay":0,"duration":400,"effect":"puff"},"id":"e1928","trigger":"after"}],"t":[{"f":null},{"f":null}],"e":[{"i":"e1928","t":"img","c":{"img":"http://farm4.static.flickr.com/3093/2617023178_c6b55abe85_m.jpg","src":"http://farm4.static.flickr.com/3093/2617023178_c6b55abe85.jpg"},"p":{"left":"0.91%","height":"97.57%","top":"1.23%","width":"49.15%"}},{"i":"e2142","t":"text","c":"<p align=\"center\"><font id=\"ext-gen2175\" color=\"#ffffff\" face=\"arial\" size=\"4\"><b id=\"ext-gen2174\">Froggy</b></font></p>","p":{"left":"19.56%","fontSize":"100%","height":"5.22%","fontClass":"A","top":"36.35%","width":"11.6%"}},{"i":"e2228","t":"text","c":"<p align=\"center\"><font color=\"#ffffff\" face=\"arial\" size=\"4\"><b>Teddy Junior</b></font></p>","p":{"left":"31.81%","fontSize":"100%","height":"6.96%","fontClass":"A","top":"72%","width":"16.17%"}},{"i":"e2388","t":"text","c":"<p align=\"center\"><font id=\"ext-gen2421\" color=\"#ffffff\" face=\"arial\" size=\"4\"><b id=\"ext-gen2420\">Teddy</b></font></p>","p":{"left":"3.91%","fontSize":"100%","height":"6.96%","fontClass":"A","top":"68.35%","width":"11.99%"}},{"i":"e1825","t":"img","c":{"img":"http://farm4.static.flickr.com/3220/2617061698_9b95270453_m.jpg","src":"http://farm4.static.flickr.com/3220/2617061698_9b95270453.jpg"},"p":{"left":"42.95%","height":"9.39%","top":"38.33%","width":"13.3%"}},{"i":"e2546","t":"title","c":"<p align=\"center\"><font id=\"ext-gen2579\" face=\"arial\" size=\"4\"><b id=\"ext-gen2578\"><font color=\"#ffffff\" size=\"6\">Probably</font><font size=\"6\"> the best friends</font><br></b></font></p>","p":{"left":"21.02%","fontSize":"100%","height":"8.17%","fontClass":"A","top":"90.07%","width":"70.66%"}}],"p":{"backgroundColor":"#CCFFCC"}}',
    :of_slide => 6)
  end
  
  def self.down
  end
end
